<html xmlns:wb="http://open.weibo.com/wb">
<head>
    <link href="/gamedj/static/css/reset.css?version201605311800" rel="stylesheet" />
            <link rel="stylesheet" href="/gamedj/static/css/index.css?version201605311800">
        <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=1812753147" type="text/javascript" charset="utf-8"></script>
    <script src="http://n.sinaimg.cn/game/homepage/js/jquery.min.js"></script>
    <script src="http://n.sinaimg.cn/games/2016/home/carousel.js" type="text/javascript" charset="utf-8"></script>
    <script src="/gamedj/static/js/calendar.js?version=201605311633" type="text/javascript" charset="UTF-8"></script>
    <script type="text/javascript" src="/gamedj/static/js/sclljs.js?version=201605311633"></script>
    <meta charset="UTF-8">
    <title>新浪电竞-最专业的电竞媒体-赛事直播报道-新浪电子竞技</title>
    <meta name="keywords" content="电子竞技,DOTA2,英雄联盟,lol,炉石传说,CSGO,赛事报道,直播,WCA,手游电竞,新浪网" />
    <meta name="description" content="新浪电竞是国内最专业的电竞门户网站,综合英雄联盟、DOTA2、炉石传说、魔兽争霸、CSGO、守望先锋等各类竞技游戏电竞赛事资讯报道、视频直播、战报点评。" />
</head>
<body>
<div id="Ghead">
    <!--  顶部导航包括登录验证开始  依赖于jquery    -->
    <link type="text/css" rel="stylesheet" href="/gamedj/static/css/dj_strandwhitetop.css?version=201605311800"/>
    <!--<script src="http://n.sinaimg.cn/game/article/js/gametophtml.js"></script>-->
    <!--<script src="http://n.sinaimg.cn/games/3ece443e/20160418/gametophtml.js?version=201605311633"></script>-->
    <script src="/gamedj/static/js/gameheader.js?version=201605311633" type="text/javascript" charset="utf-8"></script>
    <script src="http://i.sso.sina.com.cn/js/ssologin.js?version=201605311633" type="text/javascript" charset="utf-8"></script>
    <!--  顶部导航包括登录验证开始  依赖于jquery    -->
</div>
<style>
    .SG_top{width:1200px}
    .SGtp_box_wrap .SG_box li img{width:auto; height: auto}
    .SG_top_search{display: none}
    .SG_Login_wrap{right: 0}
    .SG_Login_wrap .SG_arrtop {left: 250px;}
    .SG_box a font{color: #3480f2 !important;}
    /*导航客户端tab切换隐藏*/
    .SG_top_div{display: none; }
    .SG_top_line{display: none; }
</style>
<!--top nav end-->
<div class="head">
    <div class="head_top">
        <a class="logo" href="/"></a>
        <div class="top_nav">
            <div class="top_nav_list">
                <a href="/">
                    <div class="nav_icon shouye" style="background-position:-28px 0"></div>
                    <p style="color: #3480f2">首页</p>
                </a>
            </div>
            <i class="nav_separation"></i>
            <div class="top_nav_list ">
                <a href="/information">
                    <div class="nav_icon zixun"></div>
                    <p>资讯</p>
                </a>
                <div class="two_nav" style="display: none">
                    <ul>
                                                    <li><a href="/information/2" target="_blank">深度报道</a></li>
                            <li><a href="/information/3" target="_blank">电竞要闻</a></li>
                            <li><a href="/information/4" target="_blank">电竞新游</a></li>
                                            </ul>
                </div>
                <script>
                        function AutoNav(current,parent){
                            var ThisNav    = current.find('.two_nav'); //当前二级栏目
                            current.siblings().find('.two_nav').hide();
                            ThisNav.show();
                            var ThisUl     = current.find('.two_nav').find('ul');    //当前二级栏目ul
                            var ThisUlWidth   = current.find('.two_nav').find('ul').width();       //二级栏目宽度
                            var OneLeft    = current.offset().left; //当前栏目距左偏移
                            var OneAllLeft = parent.offset().left; //父级栏目距左偏移
                            var OneAllWidth= parent.width(); //父级宽度
                            ThisUl.css({
                                "left":OneLeft,
                                "margin-left":-(ThisUlWidth-current.outerWidth())/2,
                            });
                            if(ThisNav.length){
                                current.addClass('active').siblings().removeClass('active');
                                if(ThisUl.offset().left<OneAllLeft){
                                    ThisUl.css({
                                        "left":OneAllLeft,
                                        "margin-left":0
                                    })
                                }else if(ThisUl.offset().left+ThisUl.width()>OneAllLeft+OneAllWidth){
                                    ThisUl.css({
                                        "left":OneAllLeft+OneAllWidth,
                                        "margin-left":-ThisUl.width()
                                    })
                                }else{
                                    return false
                                }
                            }else{
                                AutoNav(NowColumn,$('.head_top'))
                            }
                        }
                </script>
            </div>
            <!--
            <i class="nav_separation"></i>
            <div class="top_nav_list">
                <a href="/zt" target="_blank">
                    <div class="nav_icon zhuanti"></div>
                    <p>专题</p>
                </a>
            </div>
            -->
            <i class="nav_separation"></i>
            <div class="top_nav_list " >
                <a href="/live" target="_blank">
                    <div class="nav_icon zhuanti"></div>
                    <p >直播</p>
                </a>
            </div>
        </div>
        <div class="top_search">
            <form id='formid' name="cheadSearchForm" method="post" action="/search" target="_blank" >
                <input type="text" placeholder="输入查询信息" name="keywords">
                <div class="search_btn" onclick="search_form_submit();"></div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    function search_form_submit(){
        $("#formid").submit();
    }
    //锚点地位
    $(".two_nav_one").click(function(){
            $(".tab2").siblings("li").removeClass("active");
            $(".tab2").addClass("active");
            $(".news-list-detail").html("");
            get_tag_newsinfo(2,1);
    });
    $(".two_nav_two").click(function(){
            $(".tab3").addClass("active");
            $(".tab3").siblings("li").removeClass("active");
            $(".news-list-detail").html("");
            get_tag_newsinfo(3,1);
    });
    $(".two_nav_third").click(function(){
            $(".tab4").addClass("active");
            $(".tab4").siblings("li").removeClass("active");
            $(".news-list-detail").html("");
            get_tag_newsinfo(4,1);
    });
</script>
<div class="content">
<div class="containner">
<div class="con1">
    <div class="banner">
        <div class="carouselwp" data-sudaclick="game_datu"><!--轮播-->
            <div id="slider" class="Carousel has-dots">
                <ul class="clear" id="slide_img">
                </ul>
                <div class="car_bot_name"></div>
                <div class="focus_text"></div>
            </div>
            <script type="text/javascript">
                $(function(){
                    $(document).on('mouseover','.top_nav_list',function(e){
                        $(this).addClass('hover').siblings().removeClass('hover');
                    }).on('mouseout','.top_nav_list',function(e){
                        $(this).removeClass('hover');
                    });
                    $('.two_nav').width($(window).width());
                    $('.top_nav_list').hover(function(){
                        var _this=$(this);
                        AutoNav(_this,$('.head_top'))
                    },function(){
                        $('.top_nav_list').removeClass('hover active');
                        $('.two_nav').hide();
                    })
                })
            </script>
            <script type="text/javascript">
                $(function(){
                    $(".Carousel li a").click(function(e) {
                        var ad = $(this).attr("data-ad");
                        var oindex = $(this).parent("li").index();
                        if (ad == 1) {
                            e.preventDefault();
                            $("#carpop"+oindex).animate({left:"100%",opacity:1},500);
                        }else{
                            return ;
                        };
                    });
                    $(".adClose").click(function(){ //点击close
                        $(".carPopwp").animate({left:"0",opacity:0},500);
                    })
                })
            </script>
        </div>
    </div>
    <div class="hot_topic">
    </div>
</div>
<div class="con2">
<div class="game_infor">
    <h2><a class="more" href="/information" target="_blank">MORE +</a> 电竞资讯</h2>
    <div class="scoop">
        <h3>深度报道</h3>
        <a class="jia" href="/information/2" target="_blank">+</a>
        <div class="shendu">
        </div>
        <script>
            $(function(){
                $(document).on('hover','.scoop_list',function(e){
                    $(this).addClass('hover').siblings().removeClass('hover');
                });
            })
        </script>
    </div>
    <div class="game_important">
        <h3>电竞要闻</h3>
        <a class="jia" href="/information/3" target="_blank">+</a>
        <div class="dianjin">
        </div>
    </div>
    <div class="game_news">
        <h3>电竞新游</h3>
        <a class="jia" href="/information/4" target="_blank">+</a>
        <div class="xinyou">
        </div>
    </div>
</div>
<div class="game_calendar">
    <h2>赛事日历</h2>
    <div id="date_input" class="checkin_right">
    </div>
    <div class="calendar_game_preview" style="display:none; ">
       
    </div>
    <style>
        .calendar_game_preview{width: 340px; height: 297px;background:rgba(0, 0, 0, 0.88); position: absolute; top: 106px; left: 0}
        .calendar_game_preview .title{font-size: 15px; color: #f9415b; font-weight: bold; margin-left: 28px; margin-top: 30px; margin-bottom: 10px}
        .calendar_game_preview ul{height: 210px; overflow:hidden; width: 300px; margin-left: 28px}
        .calendar_game_preview li{height: 30px; line-height: 30px; margin-right: 10px}
        .calendar_game_preview li .name{font-size: 14px; color: #fff; float: left; width: 220px; overflow: hidden}
        .calendar_game_preview li .time{color:#a5a5a5; float: right; width:50px; margin-right: 10px}
        .calendar_game_preview .close{display: block; width: 37px; height: 37px; background: url("/gamedj/static/images/wdj_new/close.png") no-repeat; position: absolute; top: 0 ; right: 0}
    </style>
    <script>
        $(function(){
            $('#date_input table').attr('cellspacing','10');
            $("#date_selector").delegate(".special_day,.important_day","click",function(){
               // $('.calendar_game_preview').show();
                var now_date = $(this).attr('date');
                $.ajax({
                    type: 'GET',
                    dataType: 'json',
                    cache : false,
                    url:"/ajax_fun/get_game_list/"+now_date,
                    success:function(msg){
                        if (msg.status === 'succ') {
                                var html = '<p class="title">'+now_date+'日-赛事预览</p><ul>';
                                if (!msg.msg.content){
                                    for (var i in msg.msg){
                                        var info = msg.msg[i];
                                        if (info.wurl){
                                            html +='<li><a href="'+info.wurl+'" target="_blank"><p class="name">'+info.text+'</p></a><p class="time">'+info.time+'</p></li>';
                                        }else{
                                            html +='<li><p class="name">'+info.text+'</p><p class="time">'+info.time+'</p></li>';
                                        }
                                    }
                                }
                                 html += '</ul><a class="close" href="javascript:void(0)"></a>';
                                $('.calendar_game_preview').html(html).show();
                                $('.calendar_game_preview ul').scll({weizhi:'chuizhi',w:'2',});
                        }
                    }
                });
            });
            //关闭弹框
            $('.calendar_game_preview').delegate(' .close','click',function(){
                $('.calendar_game_preview').hide();
            });
        })
        $.extend(
                DateInput.DEFAULT_OPTS, {
//                                    month_names: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
//                                    short_month_names: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"],
                    short_day_names: ["Sun","Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
                    dateToString: function(date) {
                        var month = (date.getMonth() + 1).toString();//月份
                        var dom = date.getDate().toString();//日
                        if (month.length == 1) month = "0" + month;//控制月份为10一下的显示为01格式
                        if (dom.length == 1) dom = "0" + dom;//同月份
                        return date.getFullYear() + "-" + month + "-" + dom;
                    },
                    special_day : []
                }
        );
        $.extend(DateInput.DEFAULT_OPTS, {
            special_day : ["2016-04-01","2016-04-02","2016-04-03","2016-04-04","2016-04-05","2016-04-06","2016-04-07","2016-04-08","2016-04-09","2016-04-10","2016-04-11","2016-04-12","2016-04-13","2016-04-14","2016-04-15","2016-04-16","2016-04-17","2016-04-18","2016-04-19","2016-04-20","2016-04-21","2016-04-22","2016-04-25","2016-04-26","2016-04-27","2016-04-28","2016-04-29","2016-05-02","2016-05-03","2016-05-04","2016-05-05","2016-05-06","2016-05-07","2016-05-08","2016-05-09","2016-05-10","2016-05-11","2016-05-12","2016-05-13","2016-05-14","2016-05-15","2016-05-16","2016-05-17","2016-05-22","2016-06-01","2016-05-23","2016-06-02","2016-05-24","2016-06-06","2016-06-07","2016-05-30","2016-06-08","2016-05-31","2016-06-13","2016-06-14","2016-06-15","2016-06-16","2016-06-20","2016-06-21","2016-06-22","2016-06-23","2016-06-27","2016-06-28","2016-06-29","2016-06-30","2016-06-03"],
            important_day : ["2016-04-23","2016-04-24","2016-04-30","2016-05-01","2016-05-18","2016-05-19","2016-05-20","2016-05-21","2016-05-25","2016-05-26","2016-06-05","2016-05-27","2016-05-28","2016-05-29","2016-06-09","2016-06-10","2016-06-11","2016-06-12","2016-06-17","2016-06-18","2016-06-19","2016-06-24","2016-06-25","2016-06-26","2016-06-04"]
        });
        $('#date_input').html('').date_input();
    </script>
    <div class="today_game">
        <h3><i></i>今日(06-28)赛事</h3>
        <div class="today_game_list">
            <div class="game_list_nav">
                <a class="left btn" href="javascript:void(0)"></a>
                <a class="right btn" href="javascript:void(0)"></a>
                <div class="game_name">
                    <ul id="game_name">
                    </ul>
                    <script type="text/javascript">
                        $(function(){
                            $(document).on('click','.game_name ul li',function(e){
                                $(this).addClass('active').siblings().removeClass('active');
                                var game_i=$(this).index();
                                //$('.have_game').hide().eq(game_i).show();
                                $('.common_game').hide().eq(game_i).show();
                            })
                            var i= 3;
                            $(document).on('click','.game_list_nav .right',function(e){
                                var m=$(".game_name ul li").length;
                                var n=Math.ceil(m/3)
                                var y=m%3
                                if(i<=3*n-6){
                                    $(".game_name ul").stop().animate({marginLeft:-i*98},500);
                                }else{
                                    $(".game_name ul").stop().animate({marginLeft:-(m-3)*98},500);
                                    i=m-3;
                                }
                                i+=3;
                            });
                            $(document).on('click','.game_list_nav .left',function(e){
                                var m=$(".game_name ul li").length;
                                var n=Math.ceil(m/3);
                                var y=m%3
                                i-=3
                                if(i>3){
                                    $(".game_name ul").stop().animate({marginLeft:-(i-3)*98},500);
                                }else{
                                    $(".game_name ul").stop().animate({marginLeft:0},500);
                                    i=3
                                }
                            })
                        });
                    </script>
                </div>
            </div>
            <div class="game_list_con">
                <div class="new_game">
                </div>
            </div>
        </div>
    </div>
    <div class="advertise" id="image1"><!--广告位-->
    </div>
</div>
</div>
<div class="con3">
    <div class="wonderful_video">
        <h2 class="r_news">精彩视频
            <ul class="r_news_scrll"></ul>
        </h2>
        <div class="video_con">
            <div class="all_con">
            </div>
            <div class="related_video">
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){
        $(document).on('click','.video_nav li',function(e){
            $(this).addClass('active').siblings().removeClass('active');
            var video_i=$(this).index();
            $('.main_video iframe').remove();
            $('.main_video .videopic').show();
            $('.main_video').hide().eq(video_i).show();
        });
    })
</script>
<!--<div class="con4">
    <div class="hot_game">
    </div>
</div>-->
<div class="con5">
    <div class="game_bonus">
    </div>
    <div class="dj_top">
        <h2>电竞圈TOP</h2>
        <div class="dj_top_nav">
            <ul>
                <li class="active zhandui">战队榜</li>
                <li class="r mingren">名人榜</li>
            </ul>
            <script>
                $(function(){
                    $('.dj_top_nav li').click(function(){
                        $(this).addClass('active').siblings().removeClass('active');
                    })
                })
            </script>
        </div>
        <div class="dj_top_rank">
        </div>
        <script>
            $(function(){
                $(document).on('hover','.dj_top_rank li',function(e){
                    $(this).addClass('hover').siblings().removeClass('hover');
                });
            })
        </script>
        <div class="advertise" id="image2" ><!--广告位-->
        </div>
    </div>
</div>
</div>
</div>
<script type="text/javascript">
$(function(){
    //获取头部幻灯
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/get_html_data.d.html?pageid=109253&posdata=首页轮播图",
        //jsonpCallback:"callback",
        success:function(msg){
            if(msg.value){
                var html = '';
                for(var i in msg.value){
                    var info = msg.value[i];
                    html += '<li><a href="'+info.url+'" target="_blank" class="ad" title="'+info.title+'" data-ad="0"><img src="'+info.img+'" alt="'+info.title+'" style="opacity: 1;"></a></li>'
                }
                $("#slide_img").html(html);
                new lichslide($('#slider'),{delay:3000});
            }
        }
    })
    //获取热门专题
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/get_html_data.d.html?pageid=109253&posdata=右侧热门专题",
        // jsonpCallback:"callback",
        success:function(msg){
            if(msg.value){
                var html = '<h2>热门专题</h2>';
                for(var i in msg.value){
                    var info = msg.value[i];
                    if(info.describe.length>30)
                        info.describe = info.describe.substr(0,30)+'...';
                    if ( i ==0 ){
                        html += '<div class="topic_list topic_list_top">';
                    }else{
                        html += '<div class="topic_list topic_list_down">';
                    }
                    html += '<div class="topic_pic">';
                    html += '<a href="'+info.url+'" target="_blank"><img src="'+info.img+'"></a>';
                    html += '<div class="mask"></div></div>';
                    html += '<div class="topic_in">';
                    html += '<a href="'+info.url+'" target="_blank"><h3>'+info.title+'<i></i></h3></a>';
                    html += '<a href="'+info.url+'" target="_blank"><p>'+info.describe+'</p></a></div></div>';
                }
                $(".hot_topic").html(html);
            }
        }
    })
    //获取今日赛事
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/get_html_data.d.html?pageid=109253&posdata=今日赛事",
        //jsonpCallback:"callback",
        success:function(msg){
            if(msg.value){
                var html =  '';
                var shtml =  '';
                var hide = '';
                var w_hide = '';
                for(var i in msg.value){
                    var info = msg.value[i];
                    if ( i ==0 ){
                        html += '<li class="active">'+info.title+'</li>';
                    }else{
                        html += '<li class="">'+info.title+'</li>';
                        hide = 'style="display:none;"';
                        w_hide = 'style="display:none;"';
                    }
                    if (info.children){
                        for(var j in info.children){
                            var data = info.children[j];
                            var score='';
                            if (!data.score){
                                score = 'VS';
                            }else{
                                score = data.score;
                            }
                            shtml += ' <li><span class="time">'+data.time+'</span><div class="pk"><p class="team"><span class="name">'+data.team1+'</span><span class="logo"><img src="'+data.img1+'"></span></p><span class="num">'+score+'</span><p class="team right"><span class="logo"><img src="'+data.img2+'"></span><span  class="name">'+data.team2+'</span></p></div></li>'
                        }
                        $(".new_game").append('<div class="have_game common_game" '+hide+'><ul>'+shtml+'</ul><a class="more" href="'+info.url+'" target="_blank">查看更多></a>');
                        shtml = "";
                    }else{
                        var nogame = '<div class="no_game common_game"'+w_hide+'><h4>今日无赛事</h4><div class="no_game_in"><img src="/gamedj/static/images/wdj_new/hoho.png"><p>唉，小伙伴们，今天木有比赛，无聊，就看看以前屌炸天的视频吧~~</p></div></div>';
                        $(".new_game").append(nogame);
                    }
                }
                $("#game_name").html(html);
                $(".have_game").each(function(){
                    if ($(this).find('li').length > 5) {
                        $(this).find('ul').scll({weizhi: 'chuizhi', w: '2', scll_b: '#f3f3f3'});
                    };
                });
            }
        }
    })
    //获取日历下方广告位
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/get_html_data.d.html?pageid=109253&posdata=日历下方广告位",
        success:function(msg){
            if(msg.value){
                var html =  '<a href ="'+msg.value[0].url+'" target="_blank"><img src="'+msg.value[0].img+'" ></a>';
                $("#image1").html(html);
            }
        }
    })
    //视频播放url
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/get_html_data.d.html?pageid=109253&posdata=视频播放url",
        success:function(msg){
            if(msg.value){
                var html = '<div class="video_nav"><ul>';
                var count = msg.value.length;
                for(var j in msg.value){
                    if (j == 0) {
                        html +='<li class="active huichang">'+msg.value[j].title+'</li>';
                    }else{
                        html +='<li class="huichang">'+msg.value[j].title+'</li>';
                    }
                }
                 html += '</div><div class="video_play">';
                for(var i in msg.value){
                    var info = msg.value[i];
                    if ( i ==0 ){
                        html += '<div class="main_video" data="'+info.url+'"><div class="videopic"><img src="'+info.img+'"><a class="video_platbtn" href="javascript:void(0)"></a></div></div>';
                    }else{
                        html += '<div class="main_video"  style="display:none" data="'+info.url+'"><div class="videopic"><img src="'+info.img+'"><a class="video_platbtn" href="javascript:void(0)"></a></div></div>';
                    }
                }
                html +='</div>';
                $(".all_con").html(html);
            }
        }
    });
    //视频热门hot
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/get_html_data.d.html?pageid=109253&posdata=视频热门hot",
        success:function(msg){
            if(msg.value){
                /*var html = '<a class="new_hot" href="'+msg.value[0].url+'" target="_blank"><i></i>'+msg.value[0].title+'</a>精彩视频';
                $(".r_news").html(html);*/
                var html = '';
                for(var i=0;i<msg.value.length;i++){
                    html += '<li><a class="new_hot" href="'+msg.value[i].url+'" target="_blank"><i></i>'+msg.value[i].title+'</a></li>'
                };
                $(".r_news_scrll").html(html);
                if(msg.value.length>1){
                    setInterval('AutoScroll(".r_news_scrll")',2000);
                }
                
            }
        }
    })
    //相关视频推荐
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/get_html_data.d.html?pageid=109253&posdata=相关视频推荐",
        success:function(msg){
            if(msg.value){
                var html = '<h4>相关视频</h4>';
                for(var i in msg.value){
                    var info = msg.value[i];
                    if ( i ==0 ){
                        html += '<div class="related_video_list first">';
                    }else{
                        html += '<div class="related_video_list">';
                    }
                    html += '<div class="pic_vedio"><a href="'+info.url+'" target="_blank">';
                    html += '<img src="'+info.img+'">';
                    html += '<span class="playbtn"> <a href="'+info.url+'" target="_blank"></span></a></div>';
                    html += '<a href="'+info.url+'" target="_blank"><p class="title">'+info.title+'</p></a>';
                    html += '<p class="time"><i></i>'+info.discribe+'</p></div>';
                }
                $(".related_video").html(html);
            }
        }
    })
    //横切赛事推荐
    /* $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/get_html_data.d.html?pageid=109253&posdata=横切赛事推荐",
        success:function(msg){
            if(msg.value){
                var html = '<h3></h3>';
                for(var i in msg.value){
                    var info = msg.value[i];
                    html += '<div class="hot_game_list">';
                    html += '<div class="pic"><a href="'+info.url+'" target="_blank"><img src="'+info.img+'"><a/></div>';
                    html += '<a href="'+info.url+'" target="_blank"><p class="title">'+info.title+'</p></a>';
                    html += '<div class="game_logo"><img src="'+info.icon+'"></div>';
                    html += '<p class="time">比赛时间:<br>'+info.time+'</p></div>';
                }
                $(".hot_game").html(html);
            }
        }
    })*/
    //赛事奖金榜
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/get_html_data.d.html?pageid=109253&posdata=赛事奖金榜",
        success:function(msg){
            if(msg.value){
                var html = '<h2>赛事奖金TOP</h2><div class="game_bonus_rank"><ul>';
                for(var i in msg.value){
                    var info = msg.value[i];
                    switch(i)
                    {
                        case '0':
                            html +='<li class="one">';
                            break;
                        case '1':
                            html +='<li class="two">';
                            break;
                        case '2':
                            html +='<li class="thr">';
                            break;
                        case '3':
                            html +='<li class="fou">';
                            break;
                        case '4':
                            html +='<li class="fiv">';
                            break;
                        default:
                            html +='<li class="one">';
                    }
                    html += '<div class="rank_num"></div>';
                    html += '<div class="game_bonus_con"><div class="game_name"><div class="game_logo"><img src="'+info.logo+'"></div>';
                    html += '<p class="name">'+info.title+'</p><p class="bonus">奖金：<span>'+info.money+'$</span></p></div>';
                    html += '<div class="game_organ" style="background:rgba(0, 0, 0, 0) url(' + info.bg + ') no-repeat scroll 0 0 / 100% 100%"><p class="organ_name">'+info.discribe+'</p><p class="peo_num">微博热度：<span>'+info.num+'</span></p>';
                    html += '</div></div></li>';
                }
                $(".game_bonus").html(html);
            }
        }
    })
    //电竞圈下方广告位
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/get_html_data.d.html?pageid=109253&posdata=电竞圈下方广告位",
        success:function(msg){
            if(msg.value){
                var html =  '<a href ="'+msg.value[0].url+'" target="_blank"><img src="'+msg.value[0].img+'" ></a>';
                $("#image2").html(html);
            }
        }
    })
    //深度报道
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/zq/dianjing/2016/home_index.d.shtml?cid=179048&towhere=首页&homePic=true&pagesize=7",
        success:function(msg){
            if(msg.result.status.msg == "success"){
                var html = "";
                for(i in msg.result.data[0]){
                    var data = msg.result.data[0][i];
                    if(data.summary.length>30)
                        data.summary = data.summary.substr(0,30)+'...';
                    if (i == 0){
                        html += '<div class="scoop_list hover"><i class="dian"></i><p class="time">'+FormatDate(data.cTime,2)+'</p>';
                    }else{
                        html += '<div class="scoop_list"><i class="dian"></i><p class="time">'+FormatDate(data.cTime,2)+'</p>';
                    }
                    html += '<div class="pic"><a href="/article/'+data._id+'.shtml" target="_blank"><img src="'+data.homePic+'"></a></div>';
                    html += '<a href="/article/'+data._id+'.shtml" target="_blank"><p class="title">'+data.title+'</p></a>';
                    html += '<p class="detail">'+data.summary+'</p></div>';
                }
                $(".shendu").html(html);
            }
        }
    })
    //电竞新游
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/zq/dianjing/2016/home_index.d.shtml?cid=179050&towhere=首页&homePic=true&pagesize=3",
        success:function(msg){
            if(msg.result.status.msg == "success"){
                var html = "";
                for(i in msg.result.data[0]){
                    var data = msg.result.data[0][i];
                    if(data.summary.length>25)
                        data.summary = data.summary.substr(0,25)+'...';
                    if (i == 0){
                        html += '<div class="game_news_list first">';
                    }else{
                        html += '<div class="game_news_list">';
                    }
                    html += '<div class="pic_vedio"><a href="/article/'+data._id+'.shtml" target="_blank"><img src="'+data.homePic+'">';
                    if (data.videoid){
                        html += '<a class="playbtn" href="/article/'+data._id+'.shtml" target="_blank"></a>';
                    }
                    html += '</a></div><a href="/article/'+data._id+'.shtml" target="_blank"><p class="title">'+data.title+'</p></a>';
                    html += '<a href="/article/'+data._id+'.shtml" target="_blank"><p class="detail">'+data.summary+'</p></a></div>';
                }
                $(".xinyou").html(html);
            }
        }
    })
    //电竞要闻
    $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://interface.sina.cn/games/gpapi/zq/dianjing/2016/home_index.d.shtml?cid=179049&homePic=true&towhere=首页&pagesize=6",
        success:function(msg){
            if(msg.result.status.msg == "success"){
                var html = "";
                for(i in msg.result.data[0]){
                    var data = msg.result.data[0][i];
                    if(data.summary.length>30)
                        data.summary = data.summary.substr(0,30)+'...';
                    if (i == 0){
                        html += '<div class="game_important_list first">';
                    }else if(i==5){
                        html += '<div class="game_important_list last">';
                    }else{
                        html += '<div class="game_important_list ">';
                    }
                    html += '<a href="/article/'+data._id+'.shtml" target="_blank"><p class="title">'+data.title+'</p></a>';
                    html += '<div class="pic_vedio"><a href="/article/'+data._id+'.shtml" target="_blank"><img src="'+data.homePic+'">';
                    if (data.videoid){
                        html += '<a class="playbtn" href="/article/'+data._id+'.shtml" target="_blank"></a>';
                    }
                    html += '</a></div><p class="time">'+data.cTime+'</p>';
                    html += '<a href="/article/'+data._id+'.shtml" target="_blank"><p class="detail">'+data.summary+'</p></a></div>';
                }
                $(".dianjin").html(html);
            }
        }
    });
    
    get_rank_data('esports_zhandui');
    $(document).on('click','.video_platbtn',function(e){
        var index = $(".video_platbtn").index($(this));
        var videomain = $($(".main_video")[index]);
        var url = videomain.attr("data");
        if(url){
            videomain.find(".videopic").hide();
            videomain.append('<iframe width="800px" height="436px" frameborder="0" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" src="'+url+'"></iframe>');
        }
    });
    /*$(document).on('click','.attention',function(e){
          var uid = $(this).attr('data');
    });*/
});
/*new_hot滚动*/
function AutoScroll(obj){
    $(obj).animate({
        marginTop:"-30px"
    },500,function(){
        $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
    });
    
}
function get_rank_data(name){
    $.ajax({
        type: 'GET',
        cache : false,
        dataType:'json',
        url:"/ajax_fun/get_zhandui_list/"+name,
        success:function(msg){
            if(msg.status === 'succ'){
                var html = '<div class="title"><p class="redu">热度</p><p class="mingcheng">名称</p><p class="weibo">微博</p></div><ul>';
                for(var i in msg.msg.content){
                    var info = msg.msg.content[i];
                    switch(i)
                    {
                        case '0':
                            html +='<li class="one hover">';
                            break;
                        case '1':
                            html +='<li class="two">';
                            break;
                        case '2':
                            html +='<li class="thr">';
                            break;
                        case '3':
                            html +='<li class="fou">';
                            break;
                        case '4':
                            html +='<li class="fiv">';
                            break;
                        default:
                            html +='<li class="one">';
                    }
                    html += '<span class="dj_top_num"></span><div class="dj_infor">';
                    var follow = '';
                    follow = info.following ? '已关注' : '+关注';
                    if (info.following){
                        html += '<a class="attention">'+follow+'</a><a href="javascript:void(0)"></a>';
                    }else{
                        html += '<a class="attention " onclick="attention($(this),'+info.zd_uid+')">'+follow+'</a><a href="javascript:void(0)"></a>';
                    }
                    html += '<a href="'+info.wurl+'" target="_blank"><img class="pic" src="'+info.image+'"></a>';
                    html += '<a href="'+info.url+'" target="_blank"><span class="team">'+info.text+'</span></a>';
                    if (name == 'esports_zhandui' ){
                        html += '<a href="'+info.wurl+'" target="_blank"><span class="name"><i class="game_logo"><img src="'+info.image1+'"></i>'+info.game+'</span></a>';
                    }else{
                        html += '<a href="'+info.wurl+'" target="_blank"><span class="name">'+info.game+'</span></a>';
                    }
                    html += '</div></li>';
                }
                $(".dj_top_rank").html('').html(html);
            }
        }
    })
}
$(".zhandui").click(function(){
    get_rank_data('esports_zhandui');
})
$(".mingren").click(function(){
    get_rank_data('esports_mingren');
})
</script>
<style>
/*签到*/
.imgsign{background: url("/gamedj/static/images/wdj_new/img.png") no-repeat;}
.signin{ width: 58px; z-index: 99999999; position: fixed; bottom: 340px; right: 50%; margin-right: -677px; _position: absolute; _top: expression(documentElement.scrollTop + 460 + "px"); }
.signin .a1{display: block; width: 58px; height: 58px; background-position:0 0;  color: #fff; text-align: center;position: relative; }
.signin .a1 span{position: absolute; left: 0;right:0; bottom: 6px; font-size: 12px;}
.signin .a1.hover{background-position:-70px 0;}
.signin .a2{display: block; width: 58px; height: 58px; background-position:0 -60px; }
.signin .a2:hover{background-position: -70px -60px;}
.signtext{position: absolute; height: 58px; background: #3480f2; width: 0; color: #fff; line-height: 58px; text-align: center; font-size: 14px; right: 58px; overflow: hidden;}
.signtext a{color: #fff;font-size: 14px;margin-left: 24px;}
.signtext a i{color:#98c1ff;}
.signtext em{color: #ffde00;font-size: 18px;font-weight: bold;font-style: normal;}
.signin .text1{width: 200px;}
.signin .text2{width: 190px;}
.signin .text3{width: 245px;}
.signin .text4{width: 154px;}
.signin .text3 a:hover{text-decoration: underline;}
/*弹窗 */
.kan_dialog {position: fixed; _position: absolute; left: 50%; top: 50%; z-index: 9999; }
.tcbox, .tcboxc{width:460px; background:#efefef;padding:15px 20px;margin-top:-135px;margin-left:-230px;color: #2f2f2f;font-family:microsoft yahei;color:#2f2f2f;font-size:14px;}
.tcbox em{font-style:normal;}
.tcboxP {position:absolute}
.titlef {border-bottom:1px solid #dedede;padding-bottom:10px;color:#585858;height:20px;}
.titlef strong{font-size:14px;float:left;}
.tcbox ul li{float:left;height:24px;margin:13px 0;color:#818181;line-height:24px}
.tcbox ul input{float:left;height:24px;font-size:13px;line-height:24px;padding:0}
.closez{display:block;width:13px !important;height:13px !important; background:url(http://image2.sina.com.cn/gm/t_img/gamev4/images/v456_closez.gif) !important;float:right;margin:8px 5px 0 0;overflow:hidden;}
.closez:hover{ background-position:-13px 0 !important;}
.share-list{width:290px;}
.share-list span{float:left;font-family:microsoft yahei;font-size:14px;color:#2f2f2f}
.tcbox ul.share-list li{width:460px;margin:9px 0;}
.share-list input{float:left;width: 385px;height: 25px;line-height: 25px;background: #fff;border: 1px solid #c0c0c0;padding: 0 10px;color: #818181; text-indent:12px;}
.share-con-center{ text-align:center;height: 25px;line-height: 25px;font-family:microsoft yahei;font-size:14px;color:#2f2f2f}
.share-list-center{ text-align:center;}
.share-list-center .abtn{float:none;margin:10px auto;width:80px;}
.abtn{display:inline-block;padding: 5px 10px;text-align: center;overflow: hidden;color: #fff;float: left;background: #3480f2;
line-height: 20px;text-align: center;height: 20px;margin: -5px 0 0 0;min-width: 80px;text-decoration:none; border-radius:0; }
.abtn:hover{ background:#3480f2;color:#fff;}
.abtn strong{font-weight:normal}
.tc-info{margin:15px 0; text-align:center}
</style>
<!-- 签到 -->
<div class="FuDongAll signin">
    <div id="signtext" class="signtext text1" style="width: 0px; display: none;">首次签到送<em> 1000 </em>积分</div>
    <div class="signtext text2" style="width: 0px; display: none;">每日签到送<em> 100 </em>积分</div>
    <div class="signtext text3" style="width: 0px; display: none;">积分：<em id="user_point_em">12500</em><a href="http://jifen.sina.com.cn" target="_blank"><i>>></i>兑换商品</a></div>
    <div class="signtext text4" style="width: 0px; display: none;">今日已签到哦~~ </div>
    <!--<a class="imgsign a1" href="javascript:void(0);" id="sign_daily" data=""><span></span></a>-->
    <a class="imgsign a2" href="#top"></a>
</div>
<div id="confirm_getS" class="tcbox kan_dialog displayn" style="display: none;">
    <div class="titlef"><strong>赚取积分</strong><a href="#" data="get_score" class="closez close_con"></a></div>
    <div class="tc-info">
        <span id="confirm_getS_cont"><em>今日已领积分奖励</em></span>
    </div>
    <div class="clear"></div>
    <div class="share-list-center"> 
        <a href="#" class="abtn btnl close_con"><strong>我知道了</strong></a>　　　　
        <a href="http://jifen.sina.com.cn/gain/" target="_blank" class="abtn btnr"><strong>去赚积分</strong></a>
    </div>
</div>
<script>
//检查是否已签到
  $.ajax({
        type: 'GET',
        dataType: 'jsonp',
        cache : false,
        url:"http://kan.sina.com.cn/ajax_fun/check_everyday_points",
        success:function(msg){
            //已签到
            if (msg.msg) {
                $("#user_point_em").html(msg.user_points);
                 
                    $('.FuDongAll #sign_daily').hover(function() {
                        $(this).addClass("hover");
                        $(this).find("span").html("已签到");
                        $('.signin .text3').show().animate({
                                    'width': '245px'},
                                300, function() {
                                });
                    }, function() {
                        $(this).removeClass("hover");
                        $(this).find("span").html("");
                        $('.signin .text3').hide().css('width', '0');
                    });
            }else{
                //签到悬停
                $('.FuDongAll #sign_daily').hover(function() {
                    $(this).addClass("hover");
                    $(this).find("span").html("签到");
                    $('.signin .text2').show().animate({
                     'width': '200px'},
                     300, function() {
                     });
                }, function() {
                    $(this).removeClass("hover");
                    $(this).find("span").html("");
                    $('.signin .text2').hide().css('width', '0');
                    $('.signin .text3').hide().css('width', '0');
                });
                //签到
                $('.FuDongAll #sign_daily').on("click",function(){
                    var that = $(this);
                    var uUid = that.attr('data');
                    var uScoreNode = $('#user_point');
                    var uScoreNum = parseInt(uScoreNode.html().slice(3), 10);
                    if (uUid === ''){
                        SOL.loginShow();
                        return;
                    }
                    $.ajax({
                        type: 'GET',
                        dataType: 'jsonp',
                        cache : false,
                        url:"http://kan.sina.com.cn/ajax_fun/get_everyday_points_by_esports?uid=",
                        /*data:{uid: uUid},*/
                        success:function(msg){
                            /*if (msg.msg) {
                                $('#confirm_getS_cont').html('<em>' + msg.data + '</em>');
                                $("#confirm_getS").show();
                                $('.FuDongAll .sign').removeClass('sign').addClass('a1');
                            }*/
                            if (msg.msg === 'succ') {
                                that.addClass('displayn');
                                that.find("span").html("已签到");
                                var jf = uScoreNum + 100;
                                uScoreNode.html("积分："+jf);
                                $("#user_point_em").html(jf);
                                $('.FuDongAll #sign_daily').unbind("click");
                                $('.signin .text2').hide().css('width', '0');
                                $('.signin .text3').show().animate({
                                                'width': '245px'},
                                            300, function() {
                                            });
                                $('.FuDongAll #sign_daily').hover(function() {
                                    $(this).addClass("hover");
                                    $(this).find("span").html("已签到");
                                    $('.signin .text3').show().animate({
                                                'width': '245px'},
                                            300, function() {
                                            });
                                }, function() {
                                    $(this).removeClass("hover");
                                    $(this).find("span").html("");
                                    $('.signin .text3').hide().css('width', '0');
                                });
                            }
                        }
                    })
                });
            }
        }
    })
    
    $('.signin .text3').hover(function(){
        $('.FuDongAll #sign_daily').addClass("hover");
        $(".FuDongAll #sign_daily span").html("已签到");
        $('.signin .text3').show().css('width', '245px');
    },function(){
        $('.FuDongAll #sign_daily').removeClass("hover");
        $('.signin .text3').hide().css('width', '0');
        $(".FuDongAll #sign_daily span").html("");
    });
    
    $(".close_con").on("click",function(){
        $("#confirm_getS").hide();
    });
</script>
<!--foot-->
<div class="foot_top">
    <div class="FriendlyLinks_share">
        <div class="FriendlyLinks">
            <p class="title">友情链接</p>
            <ul>
                <li>
                    <a href="http://games.sina.com.cn/" target="_blank">新浪游戏</a>
                </li>
                <li>
                    <a href=" http://sports.sina.com.cn/" target="_blank">新浪体育</a>
                </li>
                <li>
                    <a href="http://ka.sina.com.cn/" target="_blank">新手卡</a>
                </li>
                <li>
                    <a href="http://kan.sina.com.cn/" target="_blank">看游戏</a>
                </li>
                <li>
                    <a href="http://games.sina.com.cn/vg/" target="_blank">电玩游戏</a>
                </li>
                <li>
                    <a href=" http://games.sina.com.cn/lol/" target="_blank">英雄联盟</a>
                </li>
                <li>
                    <a href="http://games.sina.com.cn/z/wow/indexpage.shtml" target="_blank">魔兽世界</a>
                </li>
            </ul>
        </div>
        <div class="share">
            <p class="title">联系我们</p>
            <span class="bdsharebuttonbox">
	            <a title="关注官方微博" href="http://weibo.com/sinaesports?refer_flag=1001030101_&is_hot=1" class="share_weibo" target="_blank"></a>
                <a title="关注官方微信" href=""  class="share_weixin"><img src="/gamedj/static/images/wdj_new/QR.jpg"></a>
                <a title="发送邮箱" href="Mailto:contact@dj.sina.cn" class="share_email"></a>
            </span>
        </div>
    </div>
</div>
<div class="footer">
    <p class="firstLine"><a href="#">新浪简介</a><span class="interval">|</span><a href="#">About Sina</a><span class="interval">|</span><a href="#">网站地图</a><span class="interval">|</span><a href="#">广告服务</a><span class="interval">|</span><a href="#">联系我们</a><span class="interval">|</span><a href="#">招聘信息</a><span class="interval">|</span><a href="#">网站律师</a><span class="interval">|</span><a href="#">SINA English</a><span class="interval">|</span><a href="#">通行证注册</a><span class="interval">|</span><a href="#">产品答疑</a></p>
    <p>Copyright © 1996-2014 SINA Corporation, All Rights Reserved</p>
    <p>新浪公司 版权所有</p>
</div>
<style>
    .foot_top{width: 100%; height: 170px; background: #323232;}
    .foot_top a:hover{text-decoration: underline}
    .foot_top .FriendlyLinks_share{width:1200px; margin: 0 auto; padding:35px 0;}
    .foot_top .FriendlyLinks{width: 800px; float: left}
    .foot_top .FriendlyLinks .title{font-size: 15px; color:#d0d0d0; font-weight: bold; text-align: center; margin-bottom: 16px}
    .foot_top .FriendlyLinks ul{overflow: hidden; margin: 0 auto; text-align: center}
    .foot_top .FriendlyLinks ul li{overflow: hidden; margin-right: 35px; display: inline-block; *display:inline; *zoom: 1;}
    .foot_top .FriendlyLinks a{font-size: 14px; color: #929292; display: block; *display:inline; *zoom: 1; text-align: left; line-height: 30px;}
    .foot_top .share{width: 340px; height: 100px; float: right; border-left:1px solid #434343; border-right:1px solid #434343; text-align: center}
    .foot_top .share .title{font-size: 15px; color:#d0d0d0; font-weight: bold;  margin-bottom: 25px; line-height: 25px}
    .foot_top .share a{display: inline-block; *display:inline; *zoom: 1; width:32px; height: 32px; margin: 0 10px }
    .foot_top .share a.share_weibo{background: url("/gamedj/static/images/wdj_new/weibo.png") no-repeat}
    .foot_top .share a.share_weixin{background: url("/gamedj/static/images/wdj_new/weixin.png") no-repeat; position: relative}
    .foot_top .share a.share_weixin img{width: 144px;  height: 144px;  position: absolute;  z-index: 999;  bottom: -155px;  left: -50px; display: none}
    .foot_top .share a.share_weixin:hover img{display: block}
    .foot_top .share a.share_email{background: url("/gamedj/static/images/wdj_new/email.png") no-repeat}
    .footer{background: #292929;  color: #929292;  font-size: 14px;  line-height: 30px;  padding: 20px 0 15px;  text-align: center;}
    .footer a{ color: #929292;}
    .footer a:hover{text-decoration: underline}
    .footer .interval{ margin: 0 5px;}
</style>
<script>
    //百度分享功能
    //var listboxwp;
    var listboxwp=$(".foot_top .share");
    var weixinpos;
    window._bd_share_config = {
        common : {
            bdText : '新浪游戏',
            bdDesc : '新浪游戏_最大中文游戏媒体',
            bdUrl : 'http://games.sina.com.cn/',
            bdPic : '',
            onBeforeClick: function (cmd,config) {
                var title = $.trim(listboxwp.find('h3 a:first').text());
                var summary = $.trim(listboxwp.find('.conwp p').text()) + "";
                var href = $.trim(listboxwp.find('h3 a:first').attr('href'));
                var picture = $.trim(listboxwp.find('.trans:first').attr('src'));
                config.bdText = title;
                config.bdDesc = summary;
                config.bdUrl = href;
                config.bdPic = picture;
                return config;
            },
            bdPopupOffsetLeft:500
        },
        share : [{
            "bdSize" : 16,
            bdCustomStyle:'http://games.sina.com.cn/308/2014/0424/13/strandwhitetop.css'
        }]
    };
    $(document).on('mouseenter','.bdsharebuttonbox a',function (e) {
        listboxwp = $(this).parent().parent();
    });
    $(document).on('click','.bdsharebuttonbox a',function (e) {
        if($(this).attr('data-cmd')=='weixin'){
            e.preventDefault();
            e.stopPropagation();
        }
        var pos = $(this).offset();
        weixinpos = pos;
        $('.bsWXBox').css({left:pos.left-99,top:pos.top+23}).show();
        var href = $.trim(listboxwp.find('h3 a:first').attr('href'));
        //console.log(href);
        //使用了外部接口
        $('.bsWXBox').html('<div class="t"></div><img src="http://bshare.optimix.asia/barCode?site=weixin&url='+href+'">用微信扫描二维码<br>分享至微信朋友圈');
    });
</script>
<script>
    //百度分享
    with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
</script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?101bbdeaefcb513c07ef33c12543cf72";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
<!-- SUDA_CODE_START -->
<script type="text/javascript" charset="utf-8" src="http://www.sinaimg.cn/unipro/pub/suda_s_v851c.js"></script>
<!-- SUDA_CODE_END -->
<!--新增登录框js和样式-->
<link rel="stylesheet" type="text/css" href="http://jifen.sina.com.cn/jifen/css/index_v1.5.css?v=201506191?ver=20160215">
<script src="http://jifen.sina.com.cn/jifen/js/outlogin_layer.js" charset="UTF-8"></script>
<script>
    function addCookie(name, value, expiresHours) {
        var cookieString = name + "=" + escape(value);
        //判断是否设置过期时间
        if (expiresHours > 0) {
            var date = new Date();
            date.setTime(date.getTime + expiresHours * 3600 * 1000);
            cookieString = cookieString + "; expires=" + date.toGMTString();
        }
        document.cookie = cookieString;
    }
    function getCookie(name) {
        var strCookie = document.cookie;
        var arrCookie = strCookie.split("; ");
        for (var i = 0; i < arrCookie.length; i++) {
            var arr = arrCookie[i].split("=");
            if (arr[0] == name) return arr[1];
        }
        return "";
    }
    function deleteCookie(name) {
        var date = new Date();
        date.setTime(date.getTime() - 10000);
        document.cookie = name + "=v; expires=" + date.toGMTString();
    }
    var is_login = parseInt('0');
    SOL = {
        init:function () {
            var that = this;
            SOL.loginLayer = window.SINA_OUTLOGIN_LAYER;
            if (SOL.loginLayer) {
                SOL.loginLayer.set('sso', {
                    entry:'igame'
                }).register('login_success', function () {
                    var sso_login = getCookie('sso_login');
                    if(!sso_login){
                        addCookie('sso_login',1);
                        //logOut();
                    }
                    var uid = "";
                    if(!uid){
                        window.location.reload(true);
                    }
                    that.login_action = false;
                }).register('logout_success', function () {
                    window.location.reload(true);
                }).init();
            }
        },
        isLogin:function () {
            return SOL.loginLayer.isLogin();
        },
        loginShow:function () {
            SOL.loginLayer.show();
            //showMaskDiv();
        },
        logout:function () {
            SOL.loginLayer.logout();
        }
    }
    reduce_sol = SOL;
    $(function () {
        SOL = reduce_sol;
        SOL.init();
    });
    //关注
    function attention(obj,uid) {
        var userinfo = '';
        if (userinfo && uid){
            $.ajax({
                dataType :'json',
                type  : 'get',
                cache : false,
                url : '/ajax_fun/friend_create/'+uid,
                success:function(msg){
                    if(msg.result){
                        obj.html('已关注');
                    }
                }
            });
        }else{
            SOL.loginShow();
            return;
        }
    };
    function FormatDate (strTime,$type) {
        var da = strTime.replace("年","-").replace("月","-")
                .replace("日","").replace(/-/g,"/").split(/\/|\:|\ /);
        date = new Date(da[0], da[1] - 1, da[2], da[3], da[4], da[5]);
        var mon  = '';
        var day  = '';
        if ($type == 1){
            mon = date.getMonth()+1 <10 ? '0'+(date.getMonth()+1) : date.getMonth()+1;
            return date.getFullYear()+"-"+mon+"-"+date.getDate();
        }else{
            mon = date.getMonth()+1 <10 ? '0'+(date.getMonth()+1) : date.getMonth()+1;
            day ="-"+date.getDate()
            return mon+day;
        }
    }
</script>
<!--新增登录框js和样式  end-->
<link href="/gamedj/static/css/login.css?version201605311800" rel="stylesheet" />
</body>
</html>
